package com.contract.spirit.ui.exchange.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.contract.spirit.R
import com.contract.spirit.bean.response.MainPageResponse
import com.contract.spirit.databinding.AdapterExchangeOrderSelectBinding

/**
 * @author: witness
 * created: 2021/9/27
 * desc:
 */
class ExchangeOrderSelectAdapter : BaseQuickAdapter<MainPageResponse.ExchangePollInfo,BaseDataBindingHolder<AdapterExchangeOrderSelectBinding>>(
    R.layout.adapter_exchange_order_select,
    ArrayList()
) {
    override fun convert(
        holder: BaseDataBindingHolder<AdapterExchangeOrderSelectBinding>,
        item: MainPageResponse.ExchangePollInfo
    ) {
        holder.dataBinding?.item = item
    }
}